﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using BestEasyCMS.Service.Interfaces.Security;
using BestEasyCMS.Service.Messages.Security.Request;

namespace BestEasyCMS.Web.MvcUI.Areas.BestEasyAdmin.Controllers.Security
{
    public class RoleManageController : Controller
    {
        private readonly IRoleService _roleService;
        public RoleManageController(IRoleService roleService)
        {
            _roleService = roleService;
        }
        //
        // GET: /BestEasyAdmin/RoleManage/
        public ActionResult Index()
        {
            var response = _roleService.GetRolesPageBy(new GetRolesPageByRequest(1, 10));
            return View(response);
        }

    }
}
